class Test {
  private name:string = '';

  constructor(name:string) {
    this.name = name;
  }

  public speak() {
    console.log(this.name);
  }
}
let a = new Test('Panda');
a.speak();
let b = new Test('Kevin');
b.speak();